package com.allwees.bs.module.fms.mq.listener;

import com.allwees.bs.module.fms.service.MerchantAccountService;
import com.allwees.bs.module.mms.entity.Supplier;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 *
 * @author yangylsky
 * @since 2020-01-02
 *
 */
@Slf4j
@Component
@RabbitListener(queues = "q.Merchant.SupplierCreated")
public class CreateSupplierAccountListener {
	@Autowired
	private MerchantAccountService merchantAccountService;

    @RabbitHandler
    public void onEvent(Supplier supplier) {
        log.error(">>>>>>>>>>>废弃的流程...");
//    	merchantAccountService.createSupplierAccount(EBranchType.SUPPLIER, supplier.getUuid());
    }
}
